<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        *{
            margin: 0;
            padding: 0;
            list-style:none;
        }
    ul {
        width: 600px;
        margin: 100px auto;
        display: flex;
        border: 1px solid black;
    }
    li {
        flex: 1;
        text-align: center;
        line-height: 60px;
        background-color: pink;
        margin: 0 5px;
    }
        .layout {
            width: 600px;
            height: 800px;
            border: 1px solid black;
            margin: 100px auto;
            display: flex;
            flex-direction: column;
        }
        header {
            background-color: pink;
            flex: 1;
        }
        section {
            background-color: red;
            flex: 5;
            display: flex;
        }
        .left {
            flex: 1;
            background-color: #7CB609;
        }
        .right {
            flex: 3;
            background-color: #00b0e7;
        }
        footer {
            background-color: #222;
            flex: 1;
        }
    </style>
</head>
<body>
<nav>
    <ul>
        <li>消息</li>
        <li>通讯录</li>
        <li>发现</li>
        <li>我的</li>
        <li>空间</li>
    </ul>
</nav>

    <div class="layout">
        <header>     </header>
            <section>
                <div class="left"></div>
                <div class="right"></div>
            </section>
            <footer>

            </footer>

    </div>



</body>
</html>